  /**
   * Generate time : 2016-05-13 10:35:55
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cn.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCNWbccy 
 * table comment : 外部抽查样数据 
 */
public class ZMCNWbccy extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdStatus = "草拟";		/* 状态*/
	private String fdCjnr = " ";		/* 抽检内容*/
	private String fdMyNum = " ";		/* 煤样编码*/
	private String fdBjdw = " ";		/* 被检单位*/
	private BigDecimal fdMyMad = new BigDecimal("0");		/* 水分Mad(%)*/
	private BigDecimal fdMySt = new BigDecimal("0");		/* 硫分St,d(%)*/
	private BigDecimal fdMyQgr = new BigDecimal("0");		/* 发热量Qgr.v.d(MJ/kg)*/
	private BigDecimal fdMyAd = new BigDecimal("0");		/* 灰分Ad(%)*/
	private BigDecimal fdMyQnet = new BigDecimal("0");		/* 发热量Qnet,v,ar(J/g)*/
	private BigDecimal fdMyMt = new BigDecimal("0");		/* 全水分Mt(%)*/
	private BigDecimal fdCheNum = new BigDecimal("0");		/* 车数*/
	private String fdRemark = " ";		/* 备注*/
	private String fdForeignId = " ";		/* 外键*/
	private BigDecimal fdMyStz = new BigDecimal("0");		/* 硫分St,d(重量法)*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCjnr");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("抽检内容");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyNum");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("煤样编码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBjdw");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("被检单位");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyMad");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("水分Mad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMySt");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("硫分St,d(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyQgr");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("发热量Qgr.v.d(MJ/kg)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyAd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("灰分Ad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyQnet");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("发热量Qnet,v,ar(J/g)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyMt");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("全水分Mt(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCheNum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("车数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemark");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdForeignId");
	eiColumn.setFieldLength(200);	
	eiColumn.setDescName("外键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyStz");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("硫分St,d(重量法)");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCNWbccy() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdCjnr - 抽检内容
	 * @return the fdCjnr
	 */
	public String getFdCjnr() {
		return this.fdCjnr;
	}
	
	/**
	 * set the fdCjnr - 抽检内容
	 */
	public void setFdCjnr(String fdCjnr) {
		this.fdCjnr = fdCjnr;
	}
	/**
	 * get the fdMyNum - 煤样编码
	 * @return the fdMyNum
	 */
	public String getFdMyNum() {
		return this.fdMyNum;
	}
	
	/**
	 * set the fdMyNum - 煤样编码
	 */
	public void setFdMyNum(String fdMyNum) {
		this.fdMyNum = fdMyNum;
	}
	/**
	 * get the fdBjdw - 被检单位
	 * @return the fdBjdw
	 */
	public String getFdBjdw() {
		return this.fdBjdw;
	}
	
	/**
	 * set the fdBjdw - 被检单位
	 */
	public void setFdBjdw(String fdBjdw) {
		this.fdBjdw = fdBjdw;
	}
	/**
	 * get the fdMyMad - 水分Mad(%)
	 * @return the fdMyMad
	 */
	public BigDecimal getFdMyMad() {
		return this.fdMyMad;
	}
	
	/**
	 * set the fdMyMad - 水分Mad(%)
	 */
	public void setFdMyMad(BigDecimal fdMyMad) {
		this.fdMyMad = fdMyMad;
	}
	/**
	 * get the fdMySt - 硫分St,d(%)
	 * @return the fdMySt
	 */
	public BigDecimal getFdMySt() {
		return this.fdMySt;
	}
	
	/**
	 * set the fdMySt - 硫分St,d(%)
	 */
	public void setFdMySt(BigDecimal fdMySt) {
		this.fdMySt = fdMySt;
	}
	/**
	 * get the fdMyQgr - 发热量Qgr.v.d(MJ/kg)
	 * @return the fdMyQgr
	 */
	public BigDecimal getFdMyQgr() {
		return this.fdMyQgr;
	}
	
	/**
	 * set the fdMyQgr - 发热量Qgr.v.d(MJ/kg)
	 */
	public void setFdMyQgr(BigDecimal fdMyQgr) {
		this.fdMyQgr = fdMyQgr;
	}
	/**
	 * get the fdMyAd - 灰分Ad(%)
	 * @return the fdMyAd
	 */
	public BigDecimal getFdMyAd() {
		return this.fdMyAd;
	}
	
	/**
	 * set the fdMyAd - 灰分Ad(%)
	 */
	public void setFdMyAd(BigDecimal fdMyAd) {
		this.fdMyAd = fdMyAd;
	}
	/**
	 * get the fdMyQnet - 发热量Qnet,v,ar(J/g)
	 * @return the fdMyQnet
	 */
	public BigDecimal getFdMyQnet() {
		return this.fdMyQnet;
	}
	
	/**
	 * set the fdMyQnet - 发热量Qnet,v,ar(J/g)
	 */
	public void setFdMyQnet(BigDecimal fdMyQnet) {
		this.fdMyQnet = fdMyQnet;
	}
	/**
	 * get the fdMyMt - 全水分Mt(%)
	 * @return the fdMyMt
	 */
	public BigDecimal getFdMyMt() {
		return this.fdMyMt;
	}
	
	/**
	 * set the fdMyMt - 全水分Mt(%)
	 */
	public void setFdMyMt(BigDecimal fdMyMt) {
		this.fdMyMt = fdMyMt;
	}
	/**
	 * get the fdCheNum - 车数
	 * @return the fdCheNum
	 */
	public BigDecimal getFdCheNum() {
		return this.fdCheNum;
	}
	
	/**
	 * set the fdCheNum - 车数
	 */
	public void setFdCheNum(BigDecimal fdCheNum) {
		this.fdCheNum = fdCheNum;
	}
	/**
	 * get the fdRemark - 备注
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}
	
	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}
	/**
	 * get the fdForeignId - 外键
	 * @return the fdForeignId
	 */
	public String getFdForeignId() {
		return this.fdForeignId;
	}
	
	/**
	 * set the fdForeignId - 外键
	 */
	public void setFdForeignId(String fdForeignId) {
		this.fdForeignId = fdForeignId;
	}
	/**
	 * get the fdMyStz - 硫分St,d(重量法)
	 * @return the fdMyStz
	 */
	public BigDecimal getFdMyStz() {
		return this.fdMyStz;
	}
	
	/**
	 * set the fdMyStz - 硫分St,d(重量法)
	 */
	public void setFdMyStz(BigDecimal fdMyStz) {
		this.fdMyStz = fdMyStz;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdCjnr(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCjnr")), fdCjnr));
		setFdMyNum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyNum")), fdMyNum));
		setFdBjdw(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBjdw")), fdBjdw));
		setFdMyMad(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyMad")), fdMyMad));
		setFdMySt(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMySt")), fdMySt));
		setFdMyQgr(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyQgr")), fdMyQgr));
		setFdMyAd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyAd")), fdMyAd));
		setFdMyQnet(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyQnet")), fdMyQnet));
		setFdMyMt(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyMt")), fdMyMt));
		setFdCheNum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdCheNum")), fdCheNum));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
		setFdForeignId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdForeignId")), fdForeignId));
		setFdMyStz(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyStz")), fdMyStz));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdCjnr",StringUtils.toString(fdCjnr, eiMetadata.getMeta("fdCjnr")));	
			map.put("fdMyNum",StringUtils.toString(fdMyNum, eiMetadata.getMeta("fdMyNum")));	
			map.put("fdBjdw",StringUtils.toString(fdBjdw, eiMetadata.getMeta("fdBjdw")));	
			map.put("fdMyMad",StringUtils.toString(fdMyMad, eiMetadata.getMeta("fdMyMad")));	
			map.put("fdMySt",StringUtils.toString(fdMySt, eiMetadata.getMeta("fdMySt")));	
			map.put("fdMyQgr",StringUtils.toString(fdMyQgr, eiMetadata.getMeta("fdMyQgr")));	
			map.put("fdMyAd",StringUtils.toString(fdMyAd, eiMetadata.getMeta("fdMyAd")));	
			map.put("fdMyQnet",StringUtils.toString(fdMyQnet, eiMetadata.getMeta("fdMyQnet")));	
			map.put("fdMyMt",StringUtils.toString(fdMyMt, eiMetadata.getMeta("fdMyMt")));	
			map.put("fdCheNum",StringUtils.toString(fdCheNum, eiMetadata.getMeta("fdCheNum")));	
			map.put("fdRemark",StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));	
			map.put("fdForeignId",StringUtils.toString(fdForeignId, eiMetadata.getMeta("fdForeignId")));	
			map.put("fdMyStz",StringUtils.toString(fdMyStz, eiMetadata.getMeta("fdMyStz")));	
			
		return map;
	
	}
}